New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QAM public cloud enablement #8422
Conversation
pdostal
commented
Sep 11, 2019
•
edited
edited
- Related ticket: poo#54842
- Needles: os-autoinst-needles-sles#1231
- Verification run: latest
d3e1500
to
522b04c
Compare
be4ad66
to
71a0594
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'd just describe a bit goals of QAM tests (I guess it's the concentration on user space; I mean there is lot's of files named qam, but no explanation in the commit message).
+1 to this . there is no such thing us "QAM test" , there is just a test which would be executed by someone . Test should say what it actually tests and not who is executing it |
I agree as well 😄 I will rename it properly. The purpose of this is to allow us to run existing tests on public cloud.
My idea is to move the logic from |
I had a conversation with @okurz about such solution in the past. And if I'm not wrong he worked on something similar. Can you comment plz? |
I renamed it to |
1360dd9
to
a5121e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice.
The VR didn't point to explicit job, can you point to one using the latest code?
47092a1
to
899ca7d
Compare
c53df18
to
2c4835e
Compare
28fd7f6
to
cdf6356
Compare
e0c5b31
to
110593e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beside this test_flags()
overwrite, everything looks good to me.
0d45e46
to
5b5ebba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! Let's see how it run :)
@@ -0,0 +1,49 @@ | |||
# SUSE's openQA tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cfconrad , I have a feeling that we already have all or most part of this info somewhere ? img_proof tests ? or we gathering this info somewhere ? terraform output ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole test is actually not a test but bunch of commands I used to proof that the SSH console works. I would personally keep it just to see something basic at the beginning but we can remove it as well...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asmorodskyi you are right that img_proof collects some of it and so on. But I actually don't know if QAM team will run img_proof at all. From what I see currently, they are using a different approach to run openQA modules on the instance. I would keep it as well.
|
||
assert_script_run("ps aux | nl"); | ||
|
||
register_product(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might behave differently based on type of image you use , so bad idea use it unconditionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you mean that? I just want to install traceroute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of images available in Public Cloud expecting something like this - they called BYOS - there you getting unregistered image which suppose to register . But others will give you image which already registered via Public Cloud Provider so you don't need to register it and can just use it. Not sure how this type of images will react on attempt to register them via SCC ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I see, well, I would wait with this. Currently I use only one image and nobody decided yet for which images this will be used. The goal for this pull request is to enable the interactive ssh console in the public cloud environment. After that I will be dealing with individual tests and scenarios.
select_console 'root-console'; | ||
|
||
assert_script_run("rsync -va -e ssh ~/repos root@" . $args->{my_instance}->public_ip . ":'/tmp/repos'", timeout => 900); | ||
$args->{my_instance}->run_ssh_command(cmd => "sudo find /tmp/repos/ -name *.repo -exec sed -i 's,http://,/tmp/repos/repos/,g' '{}' \\;"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you actually connecting as root user , why you do everything via sudo ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't. The default user is ec2-user
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach in general looks ok. I have not found any serious flaws. However there is a bit of duplication related to #8099 . Please take a look into there for my approach, maybe you find it helpful.
Hello @okurz, I tried some of the code from #8099 before, but yesterday, when I saw it all in one PR I managed to actually execute it and implement our use case into it. Can I ask you to take a look once more? |
5a6b408
to
341ab8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest changes with TUNNELED
approach looking good to me!
yep, I like it as well. Nicely done. Something similar as in https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/Remote/Lab.pm#L66 might be helpful as well but it's not mandatory. |
@okurz thank you very much.
There is |
sure, of course. I did not think it is "reusable", just could provide ideas. |